package com.jueling.culture.mapper;


import com.jueling.culture.core.Mapper;
import com.jueling.culture.model.RoleAuthority;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liuzw
 * @date 2019/06/10
 */
public interface RoleAuthorityMapper extends Mapper<RoleAuthority> {

    /**
     * 根据ID删除角色权限
     * @param roleId
     * @return
     */
    Integer deleteRoleAuthority(@Param("roleId") String roleId);

    /**
     * 根据角色ID添加权限
     * @param roleId
     * @param roleAuthorityList
     * @return
     */
    Integer addRoleAuthority(@Param("roleId") String roleId, @Param("roleAuthorityList") List<RoleAuthority> roleAuthorityList);

}